package com.android.loveseason.gameengine;
/**
 * 
 * @author john
 */

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Section {
	private int step;//section step
	private String background_img;
	private String background_music_type;
	
	private List<Desc> descs;
	private List<SectionTask> tasks;
	private Map<Integer, Object> map;
	private List<SectionQuestion> question;
	private List<SectionNormalClause> mNormalClause;
	Section()
	{
		descs = new ArrayList<Desc>();
		tasks = new ArrayList<SectionTask>();
		question = new ArrayList<SectionQuestion>();
		mNormalClause = new ArrayList<SectionNormalClause>();
		map = new HashMap<Integer, Object>();
	}
	public void AddSectionItem(int key,Object value){
		map.put(key, value);
	}
	public Map<Integer,Object> getMap(){
		return map;
	}
	public List<SectionNormalClause> getmNormalClause() {
		return mNormalClause;
	}

	public void addmNormalClause(SectionNormalClause mNormalClause) {
		this.mNormalClause.add(mNormalClause);
	}

	public void AddDescItem(Desc selectItem)
	{
		descs.add(selectItem);
	}
	
	public Desc GetDescItem(int index)
	{
		return descs.get(index);
	}
	
	public void AddTaskItem(SectionTask item)
	{
		tasks.add(item);
	}
	public List<SectionQuestion> getSectionQuestion(){
		return this.question;
	}
	public void AddSectionQuestion(SectionQuestion question){
		this.question.add(question);
	}
	public SectionTask GetTaskItem(int index)
	{
		return tasks.get(index);
	}
	
	
	public int GetStep()
	{
		return step;
	}
	
	public void SetStep(int step)
	{
		this.step = step;
	}

	public String GetBackgroundMusicType()
	{
		return background_music_type;
	}
	
	public void SetBackgroundMusicType (String background_music_type)
	{
		this.background_music_type = background_music_type;
	}
	
	public String GetBackgroundImg()
	{
		return background_img;
	}
	
	public void SetBackgroundImg(String background_img)
	{
		this.background_img = background_img;
	}
	public List<Desc> getDescList(){
		return descs;
	}
	public List<SectionTask> getTaskList(){
		return tasks;
	}
}